public class Motor1 {
    public static void main(String[] args) {
        Motor a=new Motor();
        a.setDisplacement("4.5l");
        a.setWeight("200kg");
        a.setHorsepower("666p");
        System.out.println("发动机排量是"+a.getDisplacement());
        System.out.println("发动机重量是"+a.getWeight());
        System.out.println("品牌是"+a.getBrand());
        System.out.println("最大马力是"+a.getHorsepower());
    }
}
